from flask import Flask
from flask import render_template
from flask import request
import json
app = Flask(__name__)
@app.route('/')
def hello_world():
    # return 'Hello, World!'
    return render_template('input.html')
@app.route('/echarts')
def hello_echarts():
    data_tast={"a":[1,2,3,4,5]}
    return render_template("index.html",data_number=data_tast)
@app.route('/getData',methods=['post'])
def getData():
    data1=request.form.get("fname")
    data2=request.form.get("gname")
    data3=request.form.get("hname")
    data=[data1,data2,data3]
    return render_template('index.html',data_number=json.dumps(data))


if __name__ == '__main__':
    app.run(debug=True)